home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Sound Cards
/
Programming Sound Cards.iso
/
sound_68
/
detect.doc
< prev
next >
Wrap
Text File
|
1995-01-01
|
3KB
|
83 lines
C-Module for Sound Card Detection
Function documentation of Creative Sound Library Module
1. Introduction
Author : T S Lee
Version : 1.00
Last Updated : 22 Sep 1989
This version uses a more reliable detection scheme. Please
replace all older verions with it.
The library functions provided is for Microsoft C version
5.00 and above. All the memory models, SMALL, COMPACT, MEDIUM
and LARGE are available. These functions are grouped in
library files named in following conversion:
DETECTx.LIB
where "x" is the first character of the respective memory
model.
The default segment and group name defined in Microsoft C for
each memory model is used to ensure compatibility. Any global
variable memtioned in following section must be declared in
the default data segment '_DATA'.
The FM feature of the Sound Blaster Card may be an optional
item in some OEM versions. So we suggest that if you want to
play FM music on the Sound Blaster Card, separate FM chip
detection is required.
The Sound Blaster Card is compatible with the C/MS card (Game
Blaster), but it uses a different card detection scheme. Hence,
to maintain upward compatibility in your software, we strongly
suggest that you call this library routine for card detection.
2. Function Documentation
Function : unint _ct_card_here()
Description : Check for the availibity of the various
music/sound features provided by Creative.
The check is based on the I/O address stored in
the global variable ct_io_addx which is defined in
the application program.
Entry : none
Return : Music/Sound feature available
High byte is alway zero now
Low byte right most 3 bits indicate as follow
bit 0 : on for C/MS music available
bit 1 : on for FM music available
bit 2 : on for Creative voice (DSP) available
The type of Creative Music/Sound Card available on
the system can be determined with the return
value.
Game Blaster Card returns 1.
Sound Blaster Card without FM music returns 5 ,
with the FM music, returns 7.
Note - The I/O address used for the music/sound card must
be stored in ct_io_addx before the call.
(Application can set this variable to the factory
defualt value, 220 Hex). There are 6 sets of I/O
addresses : 210H, 220H, 230H, 240H, 250H and 260H.
- A zero return value may due to wrong I/O address
used.